package com.xinzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinzhi.pojo.Incomeandexpenditurerecord;
import com.xinzhi.pojo.dto.Abbreviation;
import com.xinzhi.utils.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper

public interface IncomeAndExpensesMapper extends BaseMapper<Incomeandexpenditurerecord> {
    /**
     * 添加收入支出记录
     * @param incomeandexpenditurerecord 收支记录对象
     * @return
     */
    Integer addIncomeAndExpenses(Incomeandexpenditurerecord incomeandexpenditurerecord);

    List<Abbreviation> selectAbbreviationByUserId(Integer userId);

    List<Incomeandexpenditurerecord> selectByTime(Map<String, Object> params);
}
